import React, { Component } from "react";
import { BrowserRouter as Router, Route } from "react-router-dom";
import Home from '../page/home'
import Details from '../page/details'
import Index from '../page/index'
import My from '../page/my'
import Koubei from '../page/koubei'
import Friend from '../page/friend'

class PageRoute extends Component {
  render() {
    return (
      <Router>
          <Route path="/index" component={Index} />
          <Route path="/koubei" component={Koubei} />
          <Route path="/friend" component={Friend} />
          <Route path="/my" component={My} />
          <Route exact path="/" component={Home} />
          <Route path="/details" component={Details} />
      </Router>
    );
  }
}

export default PageRoute;